package com.stellar.auth.convert;

import com.stellar.auth.basic.entity.AuthRolePermission;
import com.stellar.auth.controller.admin.authRolePermission.vo.AuthRolePermissionRequestPageVO;
import com.stellar.auth.controller.admin.authRolePermission.vo.AuthRolePermissionRequestVO;
import com.stellar.auth.controller.admin.authRolePermission.vo.AuthRolePermissionResponseVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 角色权限关联表转换器
 * @author Jqchan
 * @version 1.0
 * @date 2025-05-16 18:07:35
 */
@Mapper
public interface AuthRolePermissionConvert {

    AuthRolePermissionConvert INSTANCE = Mappers.getMapper(AuthRolePermissionConvert.class);

    AuthRolePermission convert(AuthRolePermissionResponseVO responseVO);

    AuthRolePermission convert(AuthRolePermissionRequestVO requestVO);

    AuthRolePermission convert(AuthRolePermissionRequestPageVO requestPageVO);

    AuthRolePermissionResponseVO convert(AuthRolePermission entity);

    List<AuthRolePermissionResponseVO> convertEntityToRespList(List<AuthRolePermission> entities);
}
